From 6e4b4c5419b7b981da6300302278de167f76126b Mon Sep 17 00:00:00 2001 From: Justin Burkett Date: Fri, 7 Feb 2020 22:40:28 -0500 Subject: [PATCH] Simplify last commit --- which-key.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/which-key.el b/which-key.el index e0b30de8895..312272c6b7b 100644 --- a/which-key.el +++ b/which-key.el @@ -1329,7 +1329,7 @@ width) in lines and characters respectively." ((not which-key-sort-uppercase-first) (let ((aup (not (string-equal da a))) (bup (not (string-equal db b)))) - (if (or (and aup bup) (and (not aup) (not bup))) + (if (eq aup bup) (string-lessp a b) bup))) (t (string-lessp a b))))) -- 2.30.2